package com.feng.springbootmabatismapperdemo.service.impl;

import com.feng.springbootmabatismapperdemo.bean.User;
import com.feng.springbootmabatismapperdemo.mapper.UserMapper;
import com.feng.springbootmabatismapperdemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: lrf
 * @create: 2019-09-11
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll(){
        return userMapper.selectAll();
    }
}
